←Select platform

InsertItemRange Method

Summary

Inserts an item into the LeadCollection<T> at the specified index.

Syntax
C#
VB
C++
protected virtual void InsertItemRange( 
   int index, 
   IEnumerable<T> items 
) 
Protected Overridable Sub InsertItemRange( 
   ByVal index As Integer, 
   ByVal items As IEnumerable(Of T) 
) 
protected:  
   virtual void InsertItemRange( 
      Int32 index, 
      IEnumerable<T>^ items 
   ) 

Parameters

index The 0-based index at which items should be inserted.

items The IEnumerable<T> of objects to insert. The objects can be null for reference types.

Remarks

InsertItemRange is meant to be overridden in a derived class. For a public method to insert multiple items in the LeadCollection<T>, see InsertRange.

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

If index is equal to Count, items are added to the end of LeadCollection<T>.

This method raises the CollectionChanged event with Add action.

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly